<?php
/**
 * Example to list rows in tables 
 * 
 * @category   Database
 * @package    DB_Simplex
 * @subpackage Documentation
 * @author     Philippe Jausions <jausions@php.net>
 * @copyright  2008 by 11abacus/Philippe Jausions
 * @license    http://www.opensources.org/licenses/license-bsd.php BSD license
 * @link       http://pear.11abacus.com/package/DB_Simplex
 */

require_once dirname(__FILE__).'/config.php';
require_once 'DB/Simplex.php';

$db = new DB_Simplex(DB_SIMPLEX_EXAMPLE_PATH);
$db->selectDatabase('Issues');

$tables = $db->listTables();

foreach ($tables as $table) {
    $sql = 'SELECT * FROM '.$table;
    print_r($db->query($sql));
}

?>